package com.heima.pri01;

import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;

public class ZiFuLiu04 {
    public static void main(String[] args) throws IOException {
          //读取数据,一次读取多个
              FileReader fi=new FileReader("day11\\a.txt");
             char[]chars=new char[1024];
             int len;
             while ((len=fi.read(chars))!=-1){
                 System.out.println(new String(chars,0,len));
             }
              fi.close();
    }
}
